/* horizontal scroller start */
	
	function shiftLeft_scroller()
	{
		var final_left=$(&quot;.trendscontent&quot;).position().left-1;
		$(&quot;.trendscontent&quot;).css({&quot;left&quot;:final_left+&quot;px&quot;});
		
		var first_child_width=$(&quot;.trendscontent li:first&quot;).width();
		
		if(final_left==first_child_width*(-1))
		{
			var child=$(&quot;.trendscontent li:first&quot;);
			$(&quot;.trendscontent li:first&quot;).remove();
			$(&quot;.trendscontent&quot;).append(child);	
			final_left=$(&quot;.trendscontent&quot;).position().left+first_child_width;
			$(&quot;.trendscontent&quot;).css({&quot;left&quot;:final_left+&quot;px&quot;});
		}
	}

//You need an anonymous function to wrap around your function to avoid conflict  
(function($){  
	//Attach this new method to jQuery  
	$.fn.extend({
		horizontalscroll:function()
		{
			return this.each(function(){
				scroller_time=setInterval(&#39;shiftLeft_scroller()&#39;, 12);
				$(&quot;.search_link&quot;).live(&quot;hover&quot;,function(){
					clearTimeout(scroller_time);
					var top=$(this).parent().position().top;
					var height=$(this).parent().parent().height();

					var left=$(this).offset().left;
					var left1=120-$(this).width()/2;
					var total_top=top+height;
					var total_left=left-left1;

					var detail=$(this).next(&quot;em&quot;).html();
					var title=$(this).html();

					
				});
				$(&quot;.search_link&quot;).live(&quot;mouseout&quot;,function(){
					$(&quot;.trendtip&quot;).hide();
					scroller_time=setInterval(&#39;shiftLeft_scroller()&#39;, 10);
				});
			});
		}
	});
})(jQuery);
